<%-- 
    Document   : printcategories
    Created on : 30-dic-2011, 1:59:11
    Author     : tpgalan
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="com.sdd.plains.CategoryPlain"%>
<%
    String mainName = (String) request.getSession().getAttribute("main_category");
    List<CategoryPlain> childs = (List<CategoryPlain>) request.getSession().getAttribute("childs");
    List<CategoryPlain> product_categories = (List<CategoryPlain>) request.getSession().getAttribute("product_categories");
%>
<p><b><%=mainName%></b></p>

    
<%for (CategoryPlain child : childs) {
%>
<input type="checkbox" name="CAT<%=child.getCategoryId()%>" <%if(product_categories.contains(child)){%> checked="true" <%}%>><%=child.getName()%></input>
<%
}
%>
